<template>
  <div>
    <h2 id="title">{{ message }}</h2>
    <button @click="btnclick">点击</button>
    <h3>{{ name }}</h3>
    <Com></Com>
  </div>
</template>
<script>
// 引入Com模板
import Com from "./Com.vue";
export default {
  name: "App",
  data() {
    return {
      message: "HELLO VUE WEBPACK",
      name: "LMX",
    };
  },
  components: {
    Com,
  },
};
</script>
<style scoped>
.title {
  color: blue;
}
</style>
